@import "compass";
@import "mixins.scss";

.momentsContainer {
  .subTitle {
    margin: 24px 0 12px 24px;
    font-size: 16px;
  }
  .browseOptions {
    margin: 24px;
    overflow: auto;
    .changeMomentsType {
      margin-bottom: 24px;
      input {
        margin-right: 4px;
      }
      span {
        margin-right: 18px;
      }
    }
    .searchFriend {
      @include align-items(center);
      margin-bottom: 16px;
      .layui-input {
        width: 118px;
        margin: 0 8px;
      }
    }
    .listTitle {
      margin-bottom: 12px;
    }
    .friendsList {
      overflow: auto;
    }
  }
  .searchMoments {
    margin: 12px 24px;
    .layui-input {
      @include padding-right(38px);
      background-image: image-url('search.png');
      background-size: 20px 20px;
      background-position: right 8px top 9px;
      background-repeat: no-repeat;
    }
  }
  .momentsItem {
    @include padding2(12px, 24px);
    margin-bottom: 24px;
    .momentsItemAuthor {
      @include align-items(flex-start);
      img {
        width: 40px;
        height: 40px;
        background: orange;
        margin-right: 8px;
        @include flex-shrink(0);
      }
      .authorName {
        color: #0066FF;
        font-size: 16px;
        height: 22px;
        line-height: 22px;
        margin-bottom: 8px;
        @include justify-content(space-between);
        @include align-items(flex-start);
      }
      .buttons {
        @include flex-shrink(0);
      }
    }
    .momentsResources {
      margin: 12px 0 12px 48px;
      .momentMedia {
        margin-bottom: 12px;
        @include align-items(flex-end);
        @include justify-content(space-between);
      }
      .images {
        width: 201px;
        @include flex-wrap(wrap);
        @include justify-content(flex-start);
        @include align-content(flex-start);
      }
    }
    .layui-btn {
      width: 72px;
      margin-left: 16px;
    }
    .replyTitle {
      margin: 12px 0;
    }
    .replieItem {
      font-size: 12px;
      line-height: 20px;
      .replyUser {
        color:#0000FF;
        cursor: pointer;
      }
    }
  }
  .publishMomentsContainer {
    border-top: 1px solid #ccc;
    background: #fbfbfb;
    .publishContent {
      overflow: auto;
      width: 260px;
      border-right: 1px solid #ccc;
      @include flex-shrink(0);
    }
    .publishRecords {
      overflow: auto;
    }
    .drafts {
      @include padding2(12px, 12px);
      .textDraft {
        word-break: break-all;
      }
      .oneImageDraft {
        img {
          width: 236px;
        }
      }
      .linkDraft {
        @include padding2(12px, 8px);
        @include border-radius(6px);
        border: 1px solid #ccc;
        background: #fff;
        .linkTitle {
          line-height: 22px;
        }
        .linkDesc {
          font-size: 12px;
          overflow: hidden;
          text-overflow: ellipsis;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          display: -webkit-box;
        }
        .linkDetail {
          @include justify-content(space-between);
          @include align-items(center);
        }
        .linkDetail img {
          width: 30px;
          height: 30px;
          margin-left: 8px;
        }
      }
      .imagesDraft {
        width: 236px;
        @include flex-wrap(wrap);
        @include justify-content(flex-start);
        @include align-content(flex-start);
        img {
          @include flex-shrink(0);
          width: 76px;
          height: 76px;
          object-fit: cover;
        }
        .layui-icon {
          font-size: 40px !important;
        }
      }
      .imgBox {
        position: relative;
        margin-right: 2px;
        margin-bottom: 2px;
        font-size: 0;
        .layui-icon {
          cursor: pointer;
          display: none;
          width: 100%;
          height: 100%;
          position: absolute;
          top: 0;
          left: 0;
          background: rgba(0,0,0,.5);
          color: #fff;
          font-size: 56px;
          text-align: center;
          &:before {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
          }
        }
        &:hover {
          .layui-icon {
            display: block;
          }
        }
      }
      video {
        width: 236px;
        outline: none;
      }
    }
    .sendRequests {
      margin-top: 12px;
      @include justify-content(center);
    }
    .change {
      margin-top: 8px;
      text-align: right;
      margin-bottom: 12px;
    }
  }
  .browseMomentsContainer {
    border-top: 1px solid #ccc;
    background: #fbfbfb;
    .momentsGallery {
      overflow: auto;
      width: 295px;
      border-right: 1px solid #ccc;
      @include flex-shrink(0);
      .activeMoment {
        background: #f2f2f2;
      }
    }
    .like,.comments {
      margin-left: 24px;
      button {
        width: 72px;
      }
    }
    .like {
      @include align-items(center);
      button {
        margin-right: 12px;
      }
      .friendAvatar {
        width: 40px;
        height: 40px;
        background: #ccc;
        margin: 0 4px;
      }
    }
    .comments {
      .subTitle {
        margin-left: 0;
      }
      .commentInput {
        @include align-items(flex-end);
      }
      .commentText {
        width: 388px;
        height: 149px;
      }
      button {
        margin-left: 12px;
      }
    }
    .forwardDialog {
      width: 219px;
      height: 165px;
      .forwardDialogContent {
        margin: 12px 0;
      }
      .dialogButtons {
        margin-top: 12px;
        @include justify-content(center);
        button {
          border-width: 1px;
          width: 58px;
          margin-right: 12px;
          @include box-sizing(border-box);
          &:hover {
            @include box-sizing(border-box);
          }
        }
      }
    }
  }
}
